package com.wyc.serviceMap.controller;

import com.wyc.internalCommon.response.TrackResponse;
import com.wyc.internalCommon.result.ApiResult;
import com.wyc.serviceMap.service.TrackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/track")
@RestController
public class TrackController {

    @Autowired
    private TrackService trackService;

    /**
     * 创建轨迹
     * @param tid
     * @return
     */
    @RequestMapping(value = "/add")
    public ApiResult<TrackResponse> addTrack(@RequestParam("tid") String tid){
        return trackService.add(tid);
    }

}
